<?php $this->_Hhead()?>
<link href="/Public/Home/public/member_all_common.css" rel="stylesheet" type="text/css">
<link href="/Public/Home/public/member_user.css" rel="stylesheet" type="text/css">

<div class="container clearfix"> 
<div id="ur_here">
 <a href="http://www.xiaolajiao.com/">首页</a> <code>&gt;</code> 用户中心 
</div>
    <?php $this->_Hleft()?>

    <div class="uo-list-section left">
        <div class="row">
            <h2 class="font-size-16 color-333 border-bottom">我的订单 &nbsp;<small class="color-666">（由于数据同步可能带来订单信息及订单状态显示滞后，请稍等一会儿。）</small></h2>

            <?php foreach($order as $v){?>
            <table>

                <thead>
                <tr>
                    <th colspan="3">订单号： <?php echo $v['ordersn']?>&nbsp; | &nbsp;<?php echo date('Y-m-d H:i:s',$v['time'])?>&nbsp; |&nbsp; <?php if($v['stat']==1){echo '未付款';}else if($v['stat']=='2'){echo '待发货';}else if($v['stat']==4){echo '待收货';}elseif($v['stat']==5){echo '完成';}elseif($v['stat']==6){echo '退款中';}elseif($v['stat']==7){echo '退款完成';}?></th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td class="order-list-goods">
                        <?php foreach($v['array'] as $j){?>
                        <ul>
                            <li class="order-list-img">
                                <img src="<?php echo substr(strrchr($j['img'], '|'),1)?>">
                            </li>
                            <li class="order-list-title">
                                <a href="/index.php?C=Index&F=goods_msg&id=<?php echo $j['g_id']?>">
                                    <?php echo $j['name']?> | 规格:<?php echo $j['gname']?>
                                </a>
                                <br>
                                <?php echo $j['money']?>                               </li>
                            <li>
                                <?php echo $j['num']?>                                     </li>
                        </ul>
                        <?php }?>
                    </td>
                    <td class="order-list-pay">
                        ￥ <?php echo $v['money']?>     <br><?php echo $v['pay']?>             </td>
                    <td>
                        <a href="/index.php?C=Member&F=order_msg&id=<?php echo $v['id']?>" class="f6">订单详情&gt;</a>

                        <?php if($v['stat']==1){?>
                        <a href="/index.php?C=Member&F=order_upd&stat=3&id=<?php echo $v['id']?>" style="color:red">取消</a>
                        <br/>
                        <br/>
                        <a href="/index.php?C=Order&F=orderMsg&id=<?php echo $v['id']?>" style="color:red">支付</a>
                        <?php }else if($v['stat']==2){?>
                        <a href="/index.php?C=Member&F=order_upd&stat=6&type=tk&id=<?php echo $v['id']?>" style="color:red">退款</a>
                        <?php }else if($v['stat']==4){?>
                        <a href="/index.php?C=Member&F=ckwl&id=<?php echo $v['id']?>" style="color:red">查看物流</a>
                        <?php }else if($v['stat']==5){?>
                        订单已完成
                        <?php }else if($v['stat']==6){?>
                        退款中
                        <?php }else if($v['stat']==5){?>
                        退款完成
                        <?php }?>
                    </td>

                </tr>
                </tbody>
            </table>
            <?php }?>


            <div class="border-top">&nbsp;</div>



        </div>
    </div>

</div>
<?php $this->_Hfooter()?>